#import <Foundation/Foundation.h>
#import "PersistentDataType.h"

/**
 * Contains longitude and latitude for a GPS coordinate.
 * 
 * @author      Justin Hollander
 * @version     0.7.0     
 * @since       0.1.0
 * @see         PersistentDataType
 */
@interface GPSLocation : NSObject<PersistentDataType> {
	double longitude; //longitudinal coordinate
	double latitude;  //latitudinal coordinate
}

@property (nonatomic) double longitude;
@property (nonatomic) double latitude;

/**
 * Initialize the GPS location with coordinates.
 * 
 * @param  lat  latitude
 * @param  lon  longitude
 * @return      initialized GPS location
 */
-(id)initWithDetails:(double)latCoordinate lon:(double)lon;

/**
 * Initialize the GPS location with another one.
 * 
 * @param  copy  the other GPS location to copy
 * @return       initialized GPS location
 */
-(id)initWithParam  :(GPSLocation*)copy;

@end
